package com.kennedy.springboot.beans;

import com.kennedy.springboot.beans.common.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * Created by 51102 on 2017/6/18.
 */
public class Shop extends BaseEntity {
    private String shopName; // 店名
    private Integer shopType; // 类型
    private String address; // 地址
    private String logoUrl;
    @Transient
    private List<Product> products;

    public Shop() {
    }

    public Shop(String shopName, Integer shopType, String address) {
        this.shopName = shopName;
        this.shopType = shopType;
        this.address = address;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Integer getShopType() {
        return shopType;
    }

    public void setShopType(Integer shopType) {
        this.shopType = shopType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }
}
